<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<div class="row">
	<div class="col-md-2">
		订单编号：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getId()}" />
	</div>
	<div class="col-md-2">
		所属用户：
	</div>
	<div class="col-md-4">
		<c:out value="${order.user.getUsername()}" />
	</div>
</div>
<div class="row">
	<div class="col-md-2">
		收件人：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getReceiverName()}" />
	</div>
	<div class="col-md-2">
		联系电话：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getReceiverPhone()}" />
	</div>
</div>
<div class="row">
	<div class="col-md-2">
		送货地址：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getReceiverAddress()}" />
	</div>
	<div class="col-md-2">
		总价：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getMoney()}" />
	</div>
</div>
<div class="row">
	<div class="col-md-2">
		下单时间：
	</div>
	<div class="col-md-4">
		<c:out value="${order.getOrdertime()}" />
	</div>
</div>
<div class="row">
	<div class="col-md-2">
		商品信息：
	</div>
	<div class="col-md-10">
		<table class="table table-bordered">
			<tr>
				<th>序号</th>
				<th>商品编号</th>
				<th>商品名称</th>
				<th>商品价格</th>
				<th>购买数量</th>
				<th>商品类别</th>
				<th>商品描述</th>
			</tr>
			<c:forEach items="${orderItems}" var="item" varStatus="status">
			<tr>
				<td><c:out value="${statusindex + 1}" /></td>
				<td><c:out value="${item.p.getId()}" /></td>
				<td><c:out value="${item.p.getName()}" /></td>
				<td><c:out value="${item.p.getPrice()}" /></td>
				<td><c:out value="${item.getBuyNum()}" /></td>
				<td><c:out value="${item.p.getCategory()}" /></td>
				<td><c:out value="${item.p.getDescription()}" /></td>
			</tr>
			</c:forEach>
		</table>
	</div>
</div>